package com.europe.business.europebusiness.ui.activity;

import com.europe.business.europebusiness.R;
import com.europe.business.europebusiness.ui.bean.CountryBean;
import com.europe.business.europebusiness.ui.net.ICompany;
import com.europe.business.europebusiness.ui.utils.NetUtils;
import com.europe.business.europebusiness.ui.utils.Utils;

import retrofit2.Call;



public class CountryActivity extends ListActivity1<CountryBean, CountryBean.Country> {


    @Override
    protected void initView() {
        super.initView();
        setTitle(getString(R.string.info_select_country));
        setToolbarNavigationIcon(R.drawable.actionbar_back);
    }


    @Override
    protected void getData(final int pageNum, int pageSize) {
        if(pageNum == 1){
            showProgressDialog();
        }
        ICompany company = NetUtils.getRetrofit().create(ICompany.class);
        Call<CountryBean> call = company.getCountryList(pageNum, pageSize, Utils.getSystemLanguage(this));
        call.enqueue(getCallback());
    }


}
